(function(angular) {
	'use strict';
	angular.module('fs.waf').controller('cda.companyImg.viewController', viewController);
	viewController.$inject = [ '$scope', 'Constants', 'layoutConfig', 'validatorConfig', 'gridService', 'authService', 'companyImgService' ];
	function viewController($scope, Constants, layoutConfig, validatorConfig, gridService, authService, companyImgService) {
		var ctrl = this, companyImgInfo = $scope.$stateParams.params;
		ctrl.layoutConfig = layoutConfig;
		ctrl.validatorConfig = validatorConfig;
		ctrl.companyImg = {};
		ctrl.companyImgOld = {};
		ctrl.init = function() {
			var params = {
					companyImgId : companyImgInfo.companyImgId
			};
			authService.view(params).then(function(response){
				ctrl.companyImg = response.data || companyImgInfo;
			});
			
		};
	}
})(angular);